

<%@ page import="playitas.Playas" %>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <meta name="layout" content="main" />
        <g:set var="entityName" value="${message(code: 'playas.label', default: 'Playas')}" />
        <title><g:message code="default.create.label" args="[entityName]" /></title>
    </head>
    <body>
        <div class="nav">
            <span class="menuButton"><a class="home" href="${createLink(uri: '/')}"><g:message code="default.home.label"/></a></span>
            <span class="menuButton"><g:link class="list" action="list"><g:message code="default.list.label" args="[entityName]" /></g:link></span>
        </div>
        <div class="body">
            <h1><g:message code="default.create.label" args="[entityName]" /></h1>
            <g:if test="${flash.message}">
            <div class="message">${flash.message}</div>
            </g:if>
            <g:hasErrors bean="${playasInstance}">
            <div class="errors">
                <g:renderErrors bean="${playasInstance}" as="list" />
            </div>
            </g:hasErrors>
            <g:form action="save" >
                <div class="dialog">
                    <table>
                        <tbody>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="accMinusvalidos"><g:message code="playas.accMinusvalidos.label" default="Acc Minusvalidos" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: playasInstance, field: 'accMinusvalidos', 'errors')}">
                                    <g:checkBox name="accMinusvalidos" value="${playasInstance?.accMinusvalidos}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="caracteristicas"><g:message code="playas.caracteristicas.label" default="Caracteristicas" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: playasInstance, field: 'caracteristicas', 'errors')}">
                                    <g:textField name="caracteristicas" value="${playasInstance?.caracteristicas}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="chiringuito"><g:message code="playas.chiringuito.label" default="Chiringuito" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: playasInstance, field: 'chiringuito', 'errors')}">
                                    <g:checkBox name="chiringuito" value="${playasInstance?.chiringuito}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="latitud"><g:message code="playas.latitud.label" default="Latitud" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: playasInstance, field: 'latitud', 'errors')}">
                                    <g:textField name="latitud" value="${fieldValue(bean: playasInstance, field: 'latitud')}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="longitud"><g:message code="playas.longitud.label" default="Longitud" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: playasInstance, field: 'longitud', 'errors')}">
                                    <g:textField name="longitud" value="${fieldValue(bean: playasInstance, field: 'longitud')}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="nombre"><g:message code="playas.nombre.label" default="Nombre" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: playasInstance, field: 'nombre', 'errors')}">
                                    <g:textField name="nombre" value="${playasInstance?.nombre}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="nudista"><g:message code="playas.nudista.label" default="Nudista" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: playasInstance, field: 'nudista', 'errors')}">
                                    <g:checkBox name="nudista" value="${playasInstance?.nudista}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="parking"><g:message code="playas.parking.label" default="Parking" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: playasInstance, field: 'parking', 'errors')}">
                                    <g:checkBox name="parking" value="${playasInstance?.parking}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="tipo"><g:message code="playas.tipo.label" default="Tipo" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: playasInstance, field: 'tipo', 'errors')}">
                                    <g:textField name="tipo" value="${playasInstance?.tipo}" />
                                </td>
                            </tr>

                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="latitud"><g:message code="playas.distancia.label" default="Distancia" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: playasInstance, field: 'distancia', 'errors')}">
                                    <g:textField name="distancia" value="${fieldValue(bean: playasInstance, field: 'distancia')}" />
                                </td>
                            </tr>

                        </tbody>
                    </table>
                </div>
                <div class="buttons">
                    <span class="button"><g:submitButton name="create" class="save" value="${message(code: 'default.button.create.label', default: 'Create')}" /></span>
                </div>
            </g:form>
        </div>
    </body>
</html>
